<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
   
    <body>
        <div class="post">

            <h2 class="title">Cadastro de Arquivo</h2>

            <h:panelGroup id="painelMensagens" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>

            <div id="stylized" class="myform">

                <h:form>

                    <table>

                        <tr>
                            <th><h:outputLabel>Número do Arquivo: </h:outputLabel></th>
                            <td><h:outputText  value="#{ArquivoController.arquivo.id}"  /></td>
                        </tr>
                        <tr>
                            <th><h:outputLabel>Aluno: </h:outputLabel></th>
                            <td><h:outputText  value="#{ArquivoController.arquivo.aluno}"  /></td>
                        </tr>
                        <tr>
                            <th><h:outputLabel>RA: </h:outputLabel></th>
                            <td><h:outputText value="#{ArquivoController.arquivo.ra}" /></td>
                        </tr>
                        <tr>
                            <th><h:outputLabel>Curso: </h:outputLabel></th>
                            <td><h:outputText  value="#{ArquivoController.arquivo.curso.nome}" /></td>
                        </tr>
                        <tr>
                            <th><h:outputLabel>Situação: </h:outputLabel></th>
                            <td><h:outputText  value="#{ArquivoController.arquivo.situacao}" /></td>
                        </tr>
                        <tr>
                            <th><h:outputLabel>Caixa: </h:outputLabel></th>
                            <td> <h:outputText  value="#{ArquivoController.arquivo.caixa}" /></td>
                        </tr>
                        <tr>
                            <th><h:outputLabel>Armário: </h:outputLabel></th>
                            <td><h:outputText  value="#{ArquivoController.arquivo.armario}" /></td>
                        </tr>
                        <tr>
                            <th><h:outputLabel>Data da Inserção: </h:outputLabel></th>
                            <td> <h:outputText  value="#{ArquivoController.arquivo.dia}" /></td>
                        </tr>

                    </table>

                    <h:commandButton styleClass="button" action="#{ArquivoController.novo}" value="Novo" />
                    <h:commandButton styleClass="button" action="#{PageManager.setPageInserirArquivo}" value="Editar" />
                    <h:commandButton styleClass="button" action="#{ArquivoController.destroy}" value="Remover" />

                </h:form>
            </div>
        </div>
    </body>
</html>
